package MyOop02;

import java.time.LocalDateTime;
import java.util.Date;

public class MainTest01 {
    public static void main(String[] args) {
        //Math 类
        //Scanner 类
        //预定义类指的是 jdk 事先定义好的类

        //数据类型  变量名   =   值
        //  int      num    =   10 ;
        //数据类型（引用数据类型）  变量名称  =       真正的对象
        Date                  now     =       new Date();
//      new Date().after();
//          now.after();
        //Date 对象是可变的
        Employee employee = new Employee();
        employee.setHireDay(new Date());
        System.out.println(LocalDateTime.now());
        System.out.println(employee.getHireDay());
        Date date = employee.getHireDay();
        date.setTime(1000);
        System.out.println(date);
        System.out.println(employee.getHireDay());

        LocalDateTime localDateTime = employee.getDateTime();
        localDateTime =  localDateTime.plusDays(11);
        System.out.println(localDateTime);
        System.out.println(employee.getDateTime());

    }
}
